package edu.cmu.aes.project2.ws.warehouse;

import java.util.Random;

import javax.jws.WebMethod;
import javax.jws.WebService;

import edu.cmu.aes.project2.wshelper.Order;
import edu.cmu.aes.project2.wshelper.Warehouse;

@WebService()
public class WarehouseService {

	@WebMethod()
	public boolean instock(){
		Warehouse warehouse = new Warehouse();
		return warehouse.instock();
	}
	
	@WebMethod()
	public boolean orderApprove(Order order){
		System.out.println("Order approval is called");
		Warehouse warehouse = new Warehouse();
		return warehouse.orderApprove(order);
		
	}
	@WebMethod()
	public boolean orderApproveRollBack(Order order){
		Warehouse warehouse = new Warehouse();
		return warehouse.orderApproveRollback(order);
		
	}
	
}
